const http = uni.$u.http

// 轮播图
export const getBanner = (data) => http.get('/api/app/banner/getBanner', data)
// 菜  单
export const getMenu = (data) => http.get('/api/app/menu/getMenu', data)
// 公  告
export const getNotice = (data) => http.get('/api/app/notice/getNotice', data)


// 登录
export const login = (data) => http.post('/api/app/user/login', data)
// 用户信息
export const getUserInfo = (data) => http.get('/api/app/user/getUserInfo', data)
// 更换头像
export const changeAvatar = (data) => http.post('/api/app/user/changeAvatar', data)
// 修改昵称
export const changeNickname = (data) => http.post('/api/app/user/changeNickname', data)
// 修改手机号
export const changeMobile = (data) => http.post('/api/app/user/changeMobile', data)
// 学校列表
export const getSchoolList = (data) => http.post('/api/app/school/list', data)


// 学生认证
export const auth = (data) => http.post('/api/app/user/auth', data)
// 课表查询
export const getCourse = (data) => http.post('/api/app/course/course', data)
// 更新日期
export const updateDate = (data) => http.post('/api/app/course/updateDate', data)
// 课表提醒
export const remind = (data) => http.post('/api/app/course/remind', data)
// 成绩查询
export const getGrade = (data) => http.post('/api/app/grade/grade', data)
// 考试查询
export const getExam = (data) => http.post('/api/app/exam/exam', data)
// 课程通知
export const getNotify = (data) => http.post('/api/app/notify/notify', data)

// 圈子数据
export const getCircleData = (data) => http.get('/api/app/circle/getCircleData', data)
// 精选圈子
export const getFineCircle = (data) => http.get('/api/app/circle/getFineCircle', data)
// 我的圈子
export const getMyCircle = (data) => http.get('/api/app/circle/getMyCircle', data)
// 圈子列表
export const getCircleList = (data) => http.get('/api/app/circle/getCircleList', data)
// 圈子详情
export const getCircleDetail = (data) => http.get('/api/app/circle/getCircleDetail', data)
// 创建圈子
export const createCircle = (data) => http.post('/api/app/circle/createCircle', data)
// 加入圈子
export const joinCircle = (data) => http.post('/api/app/circle/joinCircle', data)
// 退出圈子
export const exitCircle = (data) => http.post('/api/app/circle/exitCircle', data)

// 发布动态
export const publish = (data) => http.post('/api/app/articles/publish', data)
// 动态列表
export const circleList = (data) => http.post('/api/app/articles/circleList', data)
// 主页动态
export const indexList = (data) => http.post('/api/app/articles/indexList', data)
// 用户动态
export const userList = (data) => http.post('/api/app/articles/userList', data)
// 动态详情
export const detail = (data) => http.get('/api/app/articles/detail', data)
// 动态点赞
export const like = (data) => http.post('/api/app/articles/like', data)
// 动态评论
export const comment = (data) => http.post('/api/app/articles/comment', data)
// 回复评论
export const reply = (data) => http.post('/api/app/articles/reply', data)
// 评论列表
export const commentList = (data) => http.get('/api/app/articles/commentList', data)
// COS临时密钥
export const cosToken = (data) => http.post('/api/app/common/cosToken', data)
// 获取手机号
export const getPhoneNumber = (data) => http.post('/api/app/common/getPhoneNumber', data)

// 字典
export const getDict = (data) => http.post('/app/dict/info/data', data)